# encoding=utf8
from flask_restplus import fields
from ..app import api

create_customer = api.model('Create Customer', {
    'first_name': fields.String(description="Customer first name", required=True),
    'last_name': fields.String(description="Customer last name", required=True),
    'birthday': fields.String(description="Customer birthday, format: YYYY/MM/DD", required=True),
    'driver_license': fields.String(description="Customer driver license, format: XXXXX-XXXXX-XXXXX", required=True),
    'phone_number': fields.String(description="Customer phone number, format: XXXXXXXXXX", required=True)
})

customer_basic = api.model('Search Customer', {
    'first_name': fields.String(description="Customer first name"),
    'last_name': fields.String(description="Customer last name"),
    'birthday': fields.String(description="Customer birthday, format: YYYY/MM/DD"),
    'driver_license': fields.String(description="Customer driver license, format: XXXXX-XXXXX-XXXXX"),
    'phone_number': fields.String(description="Customer phone number, format: XXXXXXXXXX")
})

delete_customer = api.model('Delete Customer (Also delete its address and orders)', {
    'id': fields.String(description="Customer unique ID", required=True)
})

update_customer = api.model('Update Customer', {
    'id': fields.String(description="ID of the customer that will be updated", required=True),
    'first_name': fields.String(description="Customer first name"),
    'last_name': fields.String(description="Customer last name"),
    'birthday': fields.String(description="Customer birthday, format: YYYY/MM/DD"),
    'driver_license': fields.String(description="Customer driver license, format: XXXXX-XXXXX-XXXXX"),
    'phone_number': fields.String(description="Customer phone number, format: XXXXXXXXXX")
})
